import { Authority } from '../request'

const { get, post } = Authority

///////////////////////////  布防预警接口

// 查询列表
export const getEarlyWarningList = params => get('/warning/early-warning/v1/queryList', { params })

// 更新状态
export const updateStatus = params => get('/warning/early-warning/v1/updateStatus',  { params } )


///////////////////////////  推送记录接口

// 查询单条
export const getPushRecord = params => get('/record/early-warning-push-record/v1/queryOneById', { params })

//添加推送记录
export const addPushRecord = params => post('/record/early-warning-push-record/v1/add', params )

///////////////////////////  事故报告接口

// 查询单条
export const getAccidentReport = params => get('/record/accident-report/v1/queryOneById', { params })

export const add = params => post('/record/accident-report/v1/add',   params )


///////////////////////////  照片记录接口

// 分页查询
export const getPhotoRecord = params => get('/record/camera-photo-record/v1/queryList', { params })

// 拍摄照片
export const photograph = params => get('/record/camera-photo-record/v1/photograph', { params })
